<?php
/**
 * This file is part of the Yacms (http://www.yacms.org)
 * Copyright (c) 2019 gylr0505 (http://www.yacms.org)
 *
 * Author: 鬼一浪人 <gylr0505@163.com>
 *
 * DateTime: 19-10-29 下午9:57
 * Description:
 */
 
declare(strict_types = 1);

namespace App\Model\Entity;

use Swoft\Db\Eloquent\Model;
use Swoft\Db\Annotation\Mapping\Id;
use Swoft\Db\Annotation\Mapping\Column;
use Swoft\Db\Annotation\Mapping\Entity;

/**
 * /**
 * Class Template
 * @Entity(table="template_send_logs")
 * Class TemplateSendLog
 * @package App\Model\Entity
 */
class TemplateSendLog extends Model
{
    /**
     * @Id(incrementing=true)
     *
     * @Column(name="id", prop="id")
     * @var int|null
     */
    private $id;

    /**
     * @Column(name="t_id")
     * @var string
     */
    private $templateId;

    /**
     * @Column(name="total")
     * @var
     */
    private $total;

    /**
     * @Column(name="success_total")
     * @var
     */
    private $successTotal;

    /**
     * @Column(name="fail_total")
     * @var
     */
    private $failTotal;

    /**
     * @Column(name="created_at")
     * @var
     */
    private $createdAt;

    /**
     * @return int|null
     */
    public function getId(): ?int
    {
        return $this->id;
    }

    /**
     * @param int|null $id
     */
    public function setId(?int $id): void
    {
        $this->id = $id;
    }

    public function getTemplateId()
    {
        return $this->templateId;
    }

    public function setTemplateId($template_id)
    {
        $this->templateId = $template_id;
    }


    /**
     * @return string
     */
    public function getCreatedAt()
    {
        return $this->createdAt;
    }

    /**
     * @param $created_at
     */
    public function setCreatedAt($created_at)
    {
        $this->createdAt = $created_at;
    }

    public function getTotal()
    {
        return $this->total;
    }

    public function setTotal($total)
    {
        $this->total = $total;
    }


    public function getSuccessTotal()
    {
        return $this->successTotal;
    }

    public function setSuccessTotal($total)
    {
        $this->successTotal = $total;
    }


    public function getFailTotal()
    {
        return $this->failTotal;
    }

    public function setFailTotal($total)
    {
        $this->failTotal = $total;
    }
}